package com.cake.service.inter;

import com.cake.entity.XxCoupon;
import com.cake.service.base.IBaseService;

public interface IXxCouponService extends IBaseService<XxCoupon>{
	
	/**
	 * 增加或者修改优惠券
	 * @param xxCoupon
	 * @return
	 * @throws Exception 
	 */
	Integer insertOrUpdateCoupon(XxCoupon xxCoupon) throws Exception;
	
	/**
	 * 查询优惠券详情
	 * @param couponId
	 * @return
	 */
	XxCoupon selectCouponDetails(Long couponId);
	
	/**
	 * 查询商品分类对应的优惠券个数
	 * @param productCategoryId
	 * @return
	 */
	Integer selectCouponByProductCategory(Long productCategoryId);
	
}
